package com.xiaobawang.xjsyy_idea_plugin.forest;

import lombok.Data;

import java.util.List;

@Data
public class ReleaseWorkFlows {
    // AppConfig类
    private String appName;
    private String sn;
    private String name;
    private String order;
    private String type;
    private List<ReleaseStage> releaseStages;

    @Data
    public static class ReleaseStage {
        // ReleaseStage类
        private String appName;
        private String name;
        private String sn;
        private String releaseWorkflowSn;
        private String order;
        private List<Label> labels;
        private Pipeline pipeline;
    }

    @Data
    public static class Label {
        // Label类
        private String namespace;
        private String name;
        private String value;
        private String displayName;
        private String displayValue;
        private Object extraMap;
        
    }

    @Data
    public static class Pipeline {
        // Pipeline类
        public PipelineInner pipeline;

        @Data
        public static class PipelineInner {
            // PipelineInner类
            public PipelineConfigVo pipelineConfigVo;
        }
    }

    @Data
    public static class PipelineConfigVo {
        // PipelineConfigVo类
        private String settings;
        private String creator;
        private long gmtModified;
        private String webhook;
        private String sources;
        private String modifier;
        private String sign;
        private long gmtCreate;
        private Integer version;
        private Long pipelineId;
        private String isDeleted;
        private boolean clone;
        private Integer id;
        private String pipelineType;
        private boolean doValidate;
        private String flow;
    }
}